<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>学生综合信息查询系统</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/font-awesome.min.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
    <script type="text/javascript" th:src="@{/js/lib/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/index.js}"></script>
</head>
<body>
    <div class="container">
        <div class="navbar">
            <div class="navbar-inner" th:inline="text">
                <a class="brand" href="javascript: void(0);"><span class="logo fl"><img th:src="@{/images/logo.png}"></span><span class="logo-title fl">教师综合信息查询系统</span></a>
                <span class="sign-out fr"><a href="/"><i class="fa fa-circle-o-notch"></i>退出系统</a></span>
                <th:block th:if="${admin}">
                    <span class="sign-out fr"><a th:href="'/admin/roleManagement?account_id='+${id}" ><i class="fa fa-circle-o-notch"></i>后台管理</a></span>
                </th:block>
                <span class="welcome fr"><i class="fa fa-user-circle-o"></i>[[${name}]]</span>
            </div>
        </div>
    </div>
    <div class="container base-padding">
        <div class="teacher-box">
            <h3 class="teacher-title" th:inline="text">中国矿业大学 当前教职工：[[${sums}]]人</h3>
            <div class="teacher-content">
                <div th:each="category: ${categoryes}">
                    <div class="teacher-name clearfix">
                        <div class="teacher-name-left fl" th:inline="text">[[${category.subjectCategory}]] 列表 总计：[[${category.categoryNums}]]人</div>
                        <div class="teacher-name-right fl">
                            <p th:if = "${category.get('zaizhi')} == null">
                                <span class="technical" >在职：0</span>
                                <span >管理岗（0）</span>
                                <span>教师岗（0）</span>
                                <span>工勤岗（0）</span>
                                <span>专业级术岗（0）</span>
                                <span>其他岗（0）</span>
                            </p>
                            <p th:if = "${category.get('zaizhi')} != null" th:inline="text">
                                <span class="technical" >在职：[[${category.zaizhi.statusNums}]]</span>
                                <span>管理岗（[[${category.zaizhi.get('guanli')} == null ? 0 : ${category.zaizhi.get('guanli')}]]）</span>
                                <span>教师岗（[[${category.zaizhi.get('jiaoshi')} == null ? 0 : ${category.zaizhi.get('jiaoshi')}]]）</span>
                                <span>工勤岗（[[${category.zaizhi.get('gongqin')} == null ? 0 : ${category.zaizhi.get('gongqin')}]]）</span>
                                <span>专业级术岗（[[${category.zaizhi.get('zhuanyejishu')} == null ? 0 : ${category.zaizhi.get('zhuanyejishu')}]]）</span>
                                <span>其他岗（[[${category.zaizhi.get('qita')} == null ? 0 : ${category.zaizhi.get('qita')}]]）</span>
                            </p>
                            <p th:if = "${category.get('tuixiu')} == null">
                                <span class="technical">退休：0</span>
                                <span>管理岗（0）</span>
                                <span>教师岗（0）</span>
                                <span>工勤岗（0）</span>
                                <span>专业级术岗（0）</span>
                                <span>其他岗（0）</span>
                            </p>
                            <p th:if = "${category.get('tuixiu')} != null" th:inline="text">
                                <span class="technical">退休：[[${category.tuixiu.statusNums}]]</span>
                                <span>管理岗（[[${category.tuixiu.get('guanli')} == null ? 0 : ${category.tuixiu.get('guanli')}]]）</span>
                                <span>教师岗（[[${category.tuixiu.get('jiaoshi')} == null ? 0 : ${category.tuixiu.get('jiaoshi')}]]）</span>
                                <span>工勤岗（[[${category.tuixiu.get('gongqin')} == null ? 0 : ${category.tuixiu.get('gongqin')}]]）</span>
                                <span>专业级术岗（[[${category.tuixiu.get('zhuanyejishu')} == null ? 0 : ${category.tuixiu.get('zhuanyejishu')}]]）</span>
                                <span>其他岗（[[${category.tuixiu.get('qita')} == null ? 0 : ${category.tuixiu.get('qita')}]]）</span>
                            </p>
                        </div>
                    </div>
                    <div class="teacher-table-list clearfix"  >
                        <div class="table-list" th:inline="text" th:each="subject: ${category.subjectes}">
                            <div class="division-box" th:inline="text">
                                <h3 class="division"><a th:href="'/teacher/list?id='+${id}+'&subjectCategory='+${category.subjectCategory}+'&subjectAttribute='+${subject.subjectAttribution}" target="_blank">[[${subject.subjectAttribution}]]（[[${subject.subjectNums}]]人）</a></h3>
                                <div class="division-present" >
                                    <span ><a th:href="'/teacher/list?id='+${id}+'&subjectCategory='+${category.subjectCategory}+'&subjectAttribute='+${subject.subjectAttribution}" target="_blank">在职（[[${subject.get('zaizhi')} == null ? 0 : ${subject.get('zaizhi')}]]人）</a></span><span>
                                    <a th:href="'/teacher/list?id='+${id}+'&subjectCategory='+${category.subjectCategory}+'&subjectAttribute='+${subject.subjectAttribution}" target="_blank">退休（[[${subject.get('tuixiu')} == null ? 0 : ${subject.get('tuixiu')}]]人）</a></span>
                                </div>
                            </div>
                            <ul class="division-list" th:inline="text">

                                <li class="clearfix" th:if="${subject.get('guanli')} == null"><span><i>管理岗：</i>0</span><span><i>处级</i>0</span><span><i>科级</i>0</span><span><i>其他</i>0</span></li>
                                <li class="clearfix" th:if="${subject.get('guanli')} != null">
                                    <span><i>管理岗：</i>[[${subject.guanli.jobCategoryNums}]]</span>
                                    <span><i>处级</i>[[${subject.guanli.get('high')} == null ? 0 : ${subject.guanli.get('high')}]]</span>
                                    <span><i>科级</i>[[${subject.guanli.get('middle')} == null ? 0 : ${subject.guanli.get('middle')}]]</span>
                                    <span><i>其他</i>[[${subject.guanli.get('low')} == null ? 0 : ${subject.guanli.get('low')}]]</span>
                                </li>

                                <li class="clearfix" th:if="${subject.get('jiaoshi')} == null"><span><i>教师岗：</i>0</span><span><i>高级</i>0</span><span><i>中级</i>0</span><span><i>其他</i>0</span></li>
                                <li class="clearfix" th:if="${subject.get('jiaoshi')} != null">
                                    <span><i>教师岗：</i>[[${subject.jiaoshi.jobCategoryNums}]]</span>
                                    <span><i>处级</i>[[${subject.jiaoshi.get('high')} == null ? 0 : ${subject.jiaoshi.get('high')}]]</span>
                                    <span><i>科级</i>[[${subject.jiaoshi.get('middle')} == null ? 0 : ${subject.jiaoshi.get('middle')}]]</span>
                                    <span><i>其他</i>[[${subject.jiaoshi.get('low')} == null ? 0 : ${subject.jiaoshi.get('low')}]]</span>
                                </li>
                                <li class="clearfix" th:if="${subject.get('gongqin')} == null"><span><i>工勤岗：</i>0</span><span><i>高级</i>0</span><span><i>中级</i>0</span><span><i>其他</i>0</span></li>
                                <li class="clearfix" th:if="${subject.get('gongqin')} != null">
                                    <span><i>工勤岗：</i>[[${subject.gongqin.jobCategoryNums}]]</span>
                                    <span><i>处级</i>[[${subject.gongqin.get('high')} == null ? 0 : ${subject.gongqin.get('high')}]]</span>
                                    <span><i>科级</i>[[${subject.gongqin.get('middle')} == null ? 0 : ${subject.gongqin.get('middle')}]]</span>
                                    <span><i>其他</i>[[${subject.gongqin.get('low')} == null ? 0 : ${subject.gongqin.get('low')}]]</span>
                                </li>

                                <li class="clearfix" th:if="${subject.get('zhuanyejishu')} == null"><span><i>专业技术岗：</i>0</span><span><i>高级</i>0</span><span><i>中级</i>0</span><span><i>其他</i>0</span></li>
                                <li class="clearfix" th:if="${subject.get('zhuanyejishu')} != null">
                                    <span><i>专业技术岗：</i>[[${subject.zhuanyejishu.jobCategoryNums}]]</span>
                                    <span><i>处级</i>[[${subject.zhuanyejishu.get('high')} == null ? 0 : ${subject.zhuanyejishu.get('high')}]]</span>
                                    <span><i>科级</i>[[${subject.zhuanyejishu.get('middle')} == null ? 0 : ${subject.zhuanyejishu.get('middle')}]]</span>
                                    <span><i>其他</i>[[${subject.zhuanyejishu.get('low')} == null ? 0 : ${subject.zhuanyejishu.get('low')}]]</span>
                                </li>

                                <li class="clearfix" th:if="${subject.get('qita')} == null"><span><i>其他岗：</i>0</span><span><i>高级</i>0</span><span><i>中级</i>0</span><span><i>其他</i>0</span></li>
                                <li class="clearfix" th:if="${subject.get('qita')} != null">
                                    <span><i>其他岗：</i>[[${subject.qita.jobCategoryNums}]]</span>
                                    <span><i>处级</i>[[${subject.qita.get('high')} == null ? 0 : ${subject.qita.get('high')}]]</span>
                                    <span><i>科级</i>[[${subject.qita.get('middle')} == null ? 0 : ${subject.qita.get('middle')}]]</span>
                                    <span><i>其他</i>[[${subject.qita.get('low')} == null ? 0 : ${subject.qita.get('low')}]]</span>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>